const state = {
    mytab: [
        {
            id: 'home/',
            name: '工作台',
            path: '/'
        }
    ]
};

const mutations = {
    UPDATE_MYTAB(state, value) {
        state.mytab = value;
    }
};

const actions = {
    update_mytab({ commit }, value) {
        commit('UPDATE_MYTAB', value);
    }
};

export default {
    namespaced: true,
    state,
    mutations,
    actions
};
